//
//  NDCitem.h
//  iMed
//
//	The NDCitem class records drugs that may be prescribed. Effectively,
//	an NDC item is something that (could be) is in the National Drug Code
//	database.
//
//  Created by Barry Press on 8/14/09.
//  Copyright 2009 Barry Press. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface NDCitem : NSObject <NSCoding, NSCopying> {
	NSMutableDictionary *item;
}

@property (readwrite, copy) NSString* name;
@property (readwrite, copy) NSString* ndc;
@property (readwrite, copy) NSString* quantity;
@property (readwrite, copy) NSString* unit;
@property (readwrite, copy) NSMutableDictionary* item; // <Not for use outside NDCitem

- (id)initWithNDC:(NSString*)sNDC Name:(NSString*)sName Quantity:(NSString*)sQuantity Unit:(NSString*)sUnit;
- (NSEnumerator*)keyEnumerator;
- (id)objectAtKey:(id)aString;
- (void)setObject:(id)anObject forKey:(id)aKey;
- (BOOL)validateObject;
- (NSString*)validatedString:(NSString*)key;

//- (NSString*)name;
//- (NSString*)ndc;
//- (NSString*)quantity;
//- (NSString*)unit;

//- (void)setName:(NSString*)aString;
//- (void)setNdc:(NSString*)aString;
//- (void)setQuantity:(NSString*)aString;
//- (void)setUnit:(NSString*)aString;

@end
